form method = 'get'
  .panel.panel-default
    .panel-heading
      = link_to "新增" , new_beauty_item_path, class: "btn btn-primary btn-xs", :remote=>true

    .panel-body
		.table-responsive
	      table.table.table-bordered.table-hover
	        tr
	          th 编号
	          th 名称
	          th 工时
	          th 价格
	          th 操作
	          
	        -@beauty_items.each do |b|
	          tr
	            td = b.code
	            td = b.name
	            td = b.working_hour
	            td = b.amount
	            td
	               = link_to "修改", edit_beauty_item_path(:id => b.id), class: "btn btn-success btn-xs", style: "margin-right:10px;", :remote=>true
	               = link_to "删除" , beauty_item_path(:id => b.id), :method => "DELETE", data: {confirm: '一旦删除,将无法恢复,是否删除?'}, class: "btn btn-danger btn-xs"